package com.danbay.cloud.lock.device.api.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author yangyanchen on 2017/12/18
 *         Copyright © 2016 －2017 旦倍科技
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OpenDoorReportDto {

    @NotBlank(message = "设备ID不允许为空")
    private String deviceId;

    @NotBlank(message = "上报的密码类型不允许为空")
    private Integer type;

    @NotBlank(message = "上报的密码别名不允许为空")
    private String alias;

//    @NotBlank(message = "上报的开门时间不允许为空")
    private String time;

    @JsonProperty("voltage")
    private Integer voltage;

    @JsonProperty("power")
    private Integer power;
}
